<?php

namespace app\admin\event;

use app\common\service\ImageHashService;

/**
 * 图片保存时间
 * @author 小码哥
 * @since 2020/11/21
 * Class ImgSaveListener
 * @package app\event
 */
class UpImageStatus
{
    public $service;
    public $data;

    public function __construct()
    {
        $this->service = new ImageHashService();
    }

    /**
     * @param $event
     * @return int
     * 出发事件
     */
    public function handle($event)
    {
        $result = $this->service->upInfoByImage($event);
        return $result;
    }
}
